

/// 创建人： Created by zhaolong
/// 创建时间：Created by  on 2020/7/23.
///
/// 创建人： Created by zhaolong
/// 创建时间：Created by  on 2020/9/25.
///
/// gongzhonghao biglead
/// https://study.163.com/instructor/1021406098.htm
/// https://blog.csdn.net/zl18603543572
/// https://www.toutiao.com/c/user/token/MS4wLjABAAAAYMrKikomuQJ4d-cPaeBqtAK2cQY697Pv9xIyyDhtwIM/

///lib/app/bean/bean_catalog.dart
class SettingBean {
  AppVersionBean needUpdate;
  UserStateBean userStatus;

  SettingBean.fromJson(Map<String, dynamic> map) {
    var appVersion = map["needUpdate"];
    if (appVersion != null) {
      needUpdate = AppVersionBean.fromJson(appVersion);
    }
    var sta = map["userStatus"];
    if (sta != null) {
      userStatus = UserStateBean.fromJson(sta);
    }
  }
}

class AppVersionBean {
  String isNeed = "N";
  String isForce = "N";
  String updateContent;
  String packageUrl;

  AppVersionBean.fromJson(Map<String, dynamic> map) {
    this.isNeed = map["isNeed"] ?? 'N';
    this.isForce = map["isForce"] ?? 'N';
    this.updateContent = map["updateContent"];
    this.packageUrl = map["packageUrl"];
  }
}

class UserStateBean {
  // 视频
  String isDisable;

  //
  String modifyToken;

  UserStateBean.fromJson(Map<String, dynamic> map) {
    this.isDisable = map["isDisable"];
    this.modifyToken = map["modifyToken"];
  }
}
